package Lab06.Extra4;

import java.util.List;

public class Bar {
    static private int NUM_;
    int num;//序号
    double money;

    public Bar() {
        NUM_ ++;
        this.num = NUM_;
        this.money =0;
    }
    public void Consume(double money){//消费
        this.money += money;
    }
    public void Refund(double money){//退货
        this.money -= money;
    }
    public double GetMoney(){
        return this.money;
    }
    public void clear(){//清空账单
        this.money = 0;
    }
}
